// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
#pragma once
#include "IWebService.h"

namespace Weathr
{
    delegate void WebServiceRegisteredHandler(Platform::String^ serviceName);

    // Registers the names of web services used by the app. 
    ref class WebServiceRegistry
    {
    public:
        static event WebServiceRegisteredHandler^ WebServiceRegistered;
    internal:
        static void RegisterWebService(Web::IWebService* webService);
        static const std::vector<Platform::String^>& GetRegisteredServices() { return m_registeredServices; }
    private:
        static std::vector<Platform::String^> m_registeredServices;
        WebServiceRegistry();
    };
}
